<?php
/**
 * Created by PhpStorm.
 * User: yuyan
 * Date: 2019/1/6
 * Time: 14:50
 */

namespace app\shop\home;
use app\shop\model\Single as SingleModel;

class Single extends Common
{
    public function detail()
    {

        $info = SingleModel::where('id',request()->param('id'))->find();

        $this->assign('info', $info);

        if(isMobile()){
            return $this->fetch('Mobile/News/detail');
        }else{
            return $this->fetch('News/detail');
        }
    }
}